﻿using EcoSystem.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace EcoSystem
{
    /// <summary>
    /// 添加或更新的DTO
    /// </summary>
    public class CreateOrUpdateFileResourceDto
    {
        /// <summary>
        /// 文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 文件保存路径
        /// </summary>
        public string FilePath { get; set; }

        /// <summary>
        /// 文件扩展名
        /// </summary>
        public string Extension { get; set; }

        /// <summary>
        /// 文件存储块名称
        /// </summary>
        public string BucketName { get; set; }

        /// <summary>
        /// 所属文件目录名
        /// </summary>
        public string DirPath { get; set; }

        /// <summary>
        /// 文件类型
        /// </summary>
        public FileType FileType { get; set; }

        /// <summary>
        /// 标签
        /// </summary>
        public List<string> Tags { get; set; }

        /// <summary>
        /// 是否公开
        /// </summary>
        public Nullable<bool> IsPublic { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long FileSize { get; set; }

        /// <summary>
        /// 音视频时长（秒)
        /// </summary>
        public Nullable<int> Duration { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
    }
}
